//
//  ViewController.swift
//  ZNZXSuperMarket
//
//  Created by 四川中农 on 2018/7/23.
//  Copyright © 2018年 四川中农. All rights reserved.
//

import UIKit

class ViewController: BaseViewController {
    var tableView:UITableView!
    var image:UIImage!

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        let scrollView = UIScrollView.init(frame: self.view.bounds)
        let imgV = UIImageView.init(frame: CGRect.init(x: 0, y: 0, width: UIScreen.ScreenWidth, height: UIScreen.ScreenHeight * 1.5))
        imgV.image = self.image
        scrollView.contentSize = CGSize.init(width: UIScreen.ScreenWidth, height: UIScreen.ScreenHeight * 2)
        self.view.addSubview(scrollView)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.setNavigationBarHidden(false, animated: true)
    }

}

